<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business" class="form-control" name="row[business]" value="{$row.business|htmlentities}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nature')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-nature" class="form-control selectpicker" name="row[nature]">
                {foreach name="natureList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.nature"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brief_introduction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-brief_introduction" class="form-control " rows="5" name="row[brief_introduction]" cols="50">{$row.brief_introduction|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contacts')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contacts" class="form-control" name="row[contacts]" type="text" value="{$row.contacts|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex_data')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="sexDataList" item="vo"}
                <label for="row[sex_data]-{$key}"><input id="row[sex_data]-{$key}" name="row[sex_data]" type="radio" value="{$key}" {in name="key" value="$row.sex_data"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Department')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-department" class="form-control" name="row[department]" type="text" value="{$row.department|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_title" class="form-control" name="row[job_title]" type="text" value="{$row.job_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobild')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobild" class="form-control" name="row[mobild]" type="text" value="{$row.mobild|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday_time]" type="text" value="{$row.birthday_time}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">活动时间</label>
        <div class="col-xs-6 col-sm-2">
            <input id="c-activity_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[activity_start_time]" type="text" value="{$row.activity_start_time}">
        </div>
        <div class="col-xs-6 col-sm-2">
            <input id="c-activity_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[activity_end_time]" type="text" value="{$row.activity_end_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activity_number" class="form-control" name="row[activity_number]" value="{$row.activity_number}" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Man_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-man_number" class="form-control" name="row[man_number]" value="{$row.man_number}" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Woman_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-woman_number" class="form-control" name="row[woman_number]" value="{$row.woman_number}" type="number">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age_composition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age_composition" class="form-control" name="row[age_composition]" type="number" value="{$row.age_composition}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age_composition')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('row[age_composition][]', $ageList,$row['age_composition']);}
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Participant')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-participant" class="form-control" name="row[participant]" type="text" value="{$row.participant}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Participant')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('row[participant][]', $participantList,$row['participant']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_demand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group margin-bottom-sm">
                <input id="c-demand_type" class="form-control" name="row[service_demand]" placeholder="多个以逗号隔开" type="text" value="{$row.service_demand|htmlentities}">
                <span class="types input-group-addon" data-type="demand" data-search="服务需求"><i class="fa fa-ellipsis-h"></i></span>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Channel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group margin-bottom-sm">
                <input id="c-channel_type" class="form-control" name="row[channel]" placeholder="多个以逗号隔开" type="text" value="{$row.channel|htmlentities}">
                <span class="types input-group-addon" data-type="channel" data-search="获客渠道"><i class="fa fa-ellipsis-h"></i></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_needs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-activity_needs" class="form-control " rows="5" name="row[activity_needs]" cols="50"></textarea>
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_goal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activity_goal" class="form-control" name="row[activity_goal]" type="text" value="{$row.activity_goal|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_goal')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('row[activity_goal][]', $activityGoalList,$row['activity_goal']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_theme')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activity_theme" class="form-control" name="row[activity_theme]" type="text" value="{$row.activity_theme|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Management')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-management" class="form-control" name="row[management]"  type="text" value="{$row.management|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Management')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('row[management][]', $managementList,$row['management']);}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-user_remark" class="form-control " rows="5" name="row[user_remark]" cols="50">{$row.user_remark|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Edit_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-source="auth/admin/selectpage" data-field="nickname" disabled class="form-control selectpage"  type="text" value="{$row.edit_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
